<?php

use yii\db\Migration;

/**
 * Handles adding columns to table `{{%contract}}`.
 */
class m221107_114453_add_new_doc_column_to_contract_table extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->addColumn('{{%contract}}', 'doc_invoice', $this->string(512));
        $this->addColumn('{{%contract}}', 'doc_close', $this->string(512));
        $this->addColumn('{{%contract}}', 'doc_payment_order', $this->string(512));
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        $this->dropColumn('{{%contract}}', 'doc_invoice');
        $this->dropColumn('{{%contract}}', 'doc_close');
        $this->dropColumn('{{%contract}}', 'doc_payment_order');
    }
}
